<%@ page language="java" import="java.util.*" contentType="text/html" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk"> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    骑行数据添加 <br>
    <form name="form1" action="UpdateDBServlet.do?method=insert" method="post">
<table width="200" border="1">
    <tr>
		<td>标题</td>
		<td><input type="text" name="title" size="50"></td>
	</tr>
	<tr>
		<td>内容</td>
		<td><textarea cols="100" rows="10" id="contactus" name="detailInfo"></textarea></td>
	</tr>
	<tr>
		<td>小图</td>
		<td><input type="text" name="thumb" size="50" value = "http://www.sucai.com.cn/bizhi/flashAll/20120331/1333163009BBPwcu.jpg"></td>
	</tr>
	<tr>
		<td>详情图片</td>
		<td><input type="text" name="detailImages" size="50" value = "http://www.sucai.com.cn/bizhi/flashAll/20120331/1333163009BBPwcu.jpg"></td>
	</tr>
	<tr>
		<td>作者</td>
		<td><input type="text" name="author" size="50" value = "北极熊"></td>
	</tr>
	<tr>
		<td>来源</td>
		<td><input type="text" name="source" size="50" value = "非常自行车论坛"></td>
	</tr>		
	<tr>
		<td colspan="2"><input type="submit" name="submit" value="更新到数据库">
	</tr>
</table>
</form>


   骑行数据删除 <br>
    <form name="form1" action="UpdateDBServlet.do?method=delete" method="post">
<table width="200" border="1">
    <tr>
		<td>记录id</td>
		<td><input type="text" name="id" size="50"></td>
	</tr>	
	<tr>
		<td colspan="2"><input type="submit" name="delete" value="删除记录">
	</tr>
</table>
</form>
  </body>
</html>
